Class Edge

java.lang.Object
edu.uky.ai.ml.nn.Edge

public class Edge
extends java.lang.Object
Edges in a neural network are roughly equivalent to dendrites in a biological neuron. An edge goes from a parent neuron to a child neuron and has a weight that scales the parent's value when sending it to the child.
Author:
Stephen G. Ware
  • Field Summary

    Fields 
    Modifier and Type Field Description
    Neuron child
    The child (receiver) neuron
    Neuron parent
    The parent (sender) neuron
    double weight
    The weight of the edge
  • Constructor Summary

    Constructors 
    Constructor Description
    Edge​(Neuron parent, java.util.Random random, Neuron child)
    Constructs a new edge in the network.
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • parent

      public final Neuron parent
      The parent (sender) neuron
    • weight

      public double weight
      The weight of the edge
    • child

      public final Neuron child
      The child (receiver) neuron
  • Constructor Details

    • Edge

      public Edge​(Neuron parent, java.util.Random random, Neuron child)
      Constructs a new edge in the network. This edge will automatically be added to the parent list of the child and the child list of the parent.
      Parameters:
      parent - the parent (sender) neuron
      random - a random number generator for choosing the initial weight
      child - the child (receiver) neuron